package com.jg.visitor.controller.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Getter
@Setter
@ToString
public class OutInHistoryDTO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("申请编号")
    private String applyOrderNum;

    @ApiModelProperty("被访人姓名")
    private String contacts;

    @ApiModelProperty("初次进入时间")
    private String firstEntryTime;

    @ApiModelProperty("最后离开时间")
    private String lastLeaveTime;

    @ApiModelProperty("详情")
    private List<SignInOutDTO> detail;


    @Getter
    @Setter
    @ToString
    public static class SignInOutDTO{
        @ApiModelProperty("操作类型 1签到 2签退")
        private Integer signType;

        @ApiModelProperty("大门")
        private String door;

        @ApiModelProperty("操作时间")
        private String signTime;
    }
}
